<div class="tabs"><a tab="#tab_general">Thêm đối tác</a></div>
<div id="tab_general" class='page'>
<?php  echo form_open_multipart(base_url() . 'admin/managepartner/add', 'class="crud"') ?>
	<table class="form">
		<tr>
			<td class="label">Tên đối tác</td>
            <td><input type='text' id='name' name='name' /></td>
		</tr>
		<tr>
                    <td class="label">Mô tả</td>
                    <td><textarea name="description" id="description" cols="46" rows="5"></textarea></td>
		</tr>
                <tr>
                    <td class="label">Liên kết</td>
                    <td><input type='text' id='link' name='link' /></td>
                </tr>
                <tr>
                    <td class="label">Ảnh Logo</td>
                    <td>
                        <input type="file" name="partner_logo" id="partner_logo" size="20" /> 
                    </td>
                </tr>
		<tr>
		 <input type="hidden" value="Add" name="add"/>
			<td>
			  <button onclick="return saveInfo();" type="submit" class="button" style="border: none;background: none"/>
		  		<span class="button_left button_save"></span>
				<span class="button_middle">Thêm</span>
				<span class="button_right"></span>
			</button>
			<a onclick="history.go(-1);" class="button">
				<span class="button_left button_cancel"></span>
				<span class="button_middle">Bỏ qua</span>
				<span class="button_right"></span>
			</a>
			</td>
		</tr>
	</table>
</div>
<script type='text/javascript'>
    function saveInfo(){
        var title = $('#name').val();
		if(title == '' || title.length < 1){
			alert('Nhập tên đối tác');
			$('#name').focus();
			return false;
		}
		
    }
</script>

<script type="text/javascript">
$.tabs('.tabs a');
</script>